﻿// -----------------------------------------------------------------------
// <copyright file="WelcomeForm.cs" company="FCIS">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace Security_Package
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;

    /// <summary>
    /// main form
    /// </summary>
    public partial class WelcomeForm : Form
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="WelcomeForm"/> class.
        /// </summary>
        public WelcomeForm()
        {
            this.InitializeComponent();
        }

        /// <summary>
        /// Handles the Click event of the CeaserCipherToolStripMenuItem control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void CeaserCipherToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Interface.EncruptOrDecruptForm openForm = new Interface.EncruptOrDecruptForm(Data_Structure.TypeNeed.Encrypt, Data_Structure.AlgorithmUse.CC);
            openForm.ShowDialog();
        }

        /// <summary>
        /// Handles the Click event of the PlayFairCipherToolStripMenuItem control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void PlayFairCipherToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Interface.EncruptOrDecruptForm openForm = new Interface.EncruptOrDecruptForm(Data_Structure.TypeNeed.Encrypt, Data_Structure.AlgorithmUse.PFC);
            openForm.ShowDialog();
        }

        /// <summary>
        /// Handles the Click event of the CeaserCipherToolStripMenuItem1 control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void CeaserCipherToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Interface.EncruptOrDecruptForm openForm = new Interface.EncruptOrDecruptForm(Data_Structure.TypeNeed.Decrypt, Data_Structure.AlgorithmUse.CC);
            openForm.ShowDialog();
        }

        /// <summary>
        /// Handles the Click event of the PlayFairCipherToolStripMenuItem1 control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void PlayFairCipherToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Interface.EncruptOrDecruptForm openForm = new Interface.EncruptOrDecruptForm(Data_Structure.TypeNeed.Decrypt, Data_Structure.AlgorithmUse.PFC);
            openForm.ShowDialog();
        }

        /// <summary>
        /// Handles the Click event of the MonoalphabeticCipherToolStripMenuItem control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void MonoalphabeticCipherToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Interface.EncruptOrDecruptForm openForm = new Interface.EncruptOrDecruptForm(Data_Structure.TypeNeed.Encrypt, Data_Structure.AlgorithmUse.Mono);
            openForm.ShowDialog();
        }

        /// <summary>
        /// Handles the Click event of the monoalphabeticCipherToolStripMenuItem1 control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void MonoalphabeticCipherToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Interface.EncruptOrDecruptForm openForm = new Interface.EncruptOrDecruptForm(Data_Structure.TypeNeed.Decrypt, Data_Structure.AlgorithmUse.Mono);
            openForm.ShowDialog();
        }

        /// <summary>
        /// Handles the Click event of the columnarToolStripMenuItem control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void ColumnarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Interface.EncruptOrDecruptForm openForm = new Interface.EncruptOrDecruptForm(Data_Structure.TypeNeed.Encrypt, Data_Structure.AlgorithmUse.columnar);
            openForm.ShowDialog();
        }

        /// <summary>
        /// Handles the Click event of the ColumnarToolStripMenuItem1 control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void ColumnarToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Interface.EncruptOrDecruptForm openForm = new Interface.EncruptOrDecruptForm(Data_Structure.TypeNeed.Decrypt, Data_Structure.AlgorithmUse.columnar);
            openForm.ShowDialog();
        }

        /// <summary>
        /// Handles the Click event of the VignereToolStripMenuItem control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void VignereToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Interface.EncruptOrDecruptForm openForm = new Interface.EncruptOrDecruptForm(Data_Structure.TypeNeed.Encrypt, Data_Structure.AlgorithmUse.Vignere);
            openForm.ShowDialog();
        }

        /// <summary>
        /// Handles the Click event of the VignereToolStripMenuItem1 control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void VignereToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Interface.EncruptOrDecruptForm openForm = new Interface.EncruptOrDecruptForm(Data_Structure.TypeNeed.Decrypt, Data_Structure.AlgorithmUse.Vignere);
            openForm.ShowDialog();
        }
    }
}
